package com.mls.fivedistrict.task;

import com.mls.fivedistrict.pojo.Record;
import com.mls.fivedistrict.server.GoodsOrderService;
import com.mls.fivedistrict.server.RecordService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

/**
 * Created by chenxiuxiang on 2018/6/25.
 */
@Slf4j
public class GoodsOrderRecycle {
    @Autowired
    GoodsOrderService goodsOrderService;

    /**
     * 订单超时关闭
     */
    public void goodsOrderRecy() {
        log.info("订单超时关闭");
        goodsOrderService.autoCloseOrder();

    }
}
